#include <stdio.h>
#include <clog/log.h>

void main()
{
    /* turn logging on */
    clog_log_stderr(CLOG_LL_DBG);
    
#ifdef CLOG_SYSLOG
    clog_log_syslog("test-log", CLOG_LL_WRN);
#endif

    CLOG_LOG_WRN("This is warning message\r\n");
    CLOG_LOG_DBG("This is debug message\r\n");
    CLOG_LOG_INF("This is info message\r\n");
    CLOG_LOG_ERR("This is error message\r\n");
}